
public class Size extends AbstractLeaf
{
	private int x ;
	private int y ;
	public Size(String xValue, String yValue) 
	{
		super(xValue);
		x = Integer.parseInt(xValue) ;
		if(yValue != null)
			y = Integer.parseInt(yValue) ;
		else
			y = -1 ;
	}

	@Override
	public String toDokuWiki() 
	{
		StringBuilder stringBuilder = new StringBuilder() ;
		stringBuilder.append(x) ;
		if(y > 0)
		{
			stringBuilder.append('x') ;
			stringBuilder.append(y) ;
		}
		return stringBuilder.toString() ;
	}

	@Override
	public String toMediaWiki() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String toText2tags() {
		// TODO Auto-generated method stub
		return null;
	}
	
}
